package com.zhubayi.mapper;

import com.zhubayi.entity.Admin;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author 祝八一
 */
@Repository
@Mapper
public interface AdminMapper {
    Admin queryByName(Admin admin);
    List<Admin> queryAll();
    Admin CheckOldPwd(@Param("id") Integer id, @Param("oldPwd") String oldPwd);
    void updatePassword(@Param("id") Integer id, @Param("newPwd") String newPwd);
}
